package com.jm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jm.domain.ResponseResult;
import com.jm.domain.entity.Menu;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2023-06-24 21:02:45
 */
public interface MenuService extends IService<Menu> {

    ResponseResult getInfo();

    List<String> selectPermsByUserId(Long id);

    List<Menu> selectRoutersMenuTreeByUserId(Long userId);

    ResponseResult listMenu(String status, String menuName);

    ResponseResult getMenuById(Long id);

    ResponseResult saveMenu(Menu menu);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteMenuById(Long id);

    ResponseResult treeSelectMenu();

    ResponseResult treeSelectMenuByRoleId(Long roleId);
}

